   {include file=cart.header.html}
   <script type="text/javascript">

        $(document).ready(function(){
            setInterval(query_order_state, 3000);
        });

        function query_order_state(){
            $.ajax({
                type: "GET",
                url: SITE_URL + "/weixin/index.php?app=paynotify&act=get_order_status&trans_code={$order_pay.trans_code}",
                data: "",
                dataType: "json",
                timeout: 4000,
                async:false,
                success: function(result) {

                    if(result.status === 1){
                        //直接跳到成功页
                        window.location.href = SITE_URL + "/weixin/index.php?app=paynotify&act=index&total_fee={$order_pay.trans_amount}";
                    }
                }
            });
        }
    
</script>
<div class="main">
    <div class="w">
        <!-- order 订单信息 -->
        <!-- order 订单信息 -->
        <div class="order">
            <div class="o-left">
                <h3 class="o-title">
                    请您及时付款，以便订单尽快处理！    		           	订单号：{$order_pay.trans_code}


                </h3>
                <p class="o-tips">

                    请您在提交订单后<span class="font-red">24小时</span>内完成支付，否则订单会自动取消。
                </p>
            </div>
            <div class="o-right">
                <div class="o-price">
                    <em>应付金额</em><strong>{$order_pay.trans_amount}</strong><em>元</em>
                </div>
            </div>
            <div class="clr"></div>

            <div id="listPayOrderInfo" class="o-list j_orderList">
                <!-- 单笔订单 -->

                <div class="o-list-info">
                    <span id="shdz" class="mr10"></span>
                    <span id="shr" class="mr10"></span>
                    <span id="mobile"></span>
                </div>
                <div class="o-list-info">
                    <span id="spmc"></span>
                </div>

                <!-- 单笔订单 end -->

            </div>        
        </div>
        <!-- order 订单信息 end -->            <!-- order 订单信息 end -->

        <!-- payment 支付方式选择 -->
        <div class="payment">
            <!-- 微信支付 -->
            <div class="pay-weixin">
                <div class="p-w-hd">微信支付</div>
                <div class="p-w-bd">
                    <div class="p-w-box">
                        <div class="pw-box-hd">
                            <img width="298" src="{$site_url}/index.php?app=cashier&act=weixin_png&data={$code_url}">
                        </div>
                        <div class="pw-box-ft">
                            <p>请使用微信扫一扫</p>
                            <p>扫描二维码支付</p>
                        </div>
                    </div>
                    <div class="p-w-sidebar"></div>
                </div>
            </div>
            <!-- 微信支付 end -->
            <!-- payment-change 变更支付方式 -->
            <div class="payment-change">
                <a href="" id="reChooseUrl" class="pc-wrap">
                    <i class="pc-w-arrow-left">&lt;</i>
                    <strong>选择其他支付方式</strong>
                </a>
            </div>
            <!-- payment-change 变更支付方式 end -->
        </div>
        <!-- payment 支付方式选择 end -->
    </div>
</div>
{include file="footer.index.simple.html"}